package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;

	public class AdventureUI extends BaseUI
	{
		public static  var _self:AdventureUI ; 
		public static function getInstance():AdventureUI
		{
			if(_self==null)
			{
				_self = new AdventureUI(); 	
			}
			return _self ; 
		}
		
		public function showUI():void
		{
			// 在显示界面
			super.show();
		}
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			// 先加载外部资源
			AdventureLogic.getInstance().ShowBack();
		}
//		public var Custom_1:MovieClip; 
//		public var line_1:MovieClip; 
		public var left_btn:NxButton; 
		public var right_btn:NxButton; 
		public var itemGroup:NxViewGroup; 
		
		public var imaback:NxClip ; 
		public var btn_1:NxButton ; 
//		public var label_1:NxLabel; 
		public var label_2:NxText ;  
		public var label_count:NxLabel ; 
		
		public function AdventureUI(popupUI:Boolean=true)
		{
			super(popupUI)
		}
		override public function Init():void
		{
			AdventureLogic.getInstance().init();
		}
		override protected function BeforeShow():void
		{
			AdventureLogic.getInstance().BeforeShow();
		}
		override protected function AfterHide():void
		{
			AdventureLogic.getInstance().AfterHide();
		}
	}
}